import mainMenu from '@/components/main-menu/main-menu.vue'
import { ref } from 'vue'

function useMainMenus() {
  const menusRefs = ref<InstanceType<typeof mainMenu>>()
  function handleItemClick(url: string) {
    console.log(url, 'url')

    menusRefs.value?.handleItemClick(url)
  }
  return {
    handleItemClick,
    menusRefs
  }
}

export default useMainMenus
